import request from '@/utils/request'




// 获取任务申请详细信息
export function getApplyById(id) {
	return request.get('task/apply/' + id)
}

// 新增拜访任务
export const setTaskVisit = (data) => {
  return request.post('task/visit', data)
}


// 新增调研任务
export const setTaskResearch = (data) => {
  return request.post('task/research', data)
}


// 新增科室会议
export const meetingDepartment = (data) => {
  return request.post('task/meetingDepartment', data)
}

// 新增学术会议
export const meetingAcademic = (data) => {
  return request.post('task/meetingAcademic', data)
}


// 获取拜访任务详细信息
export function getvisitById(id) {
	return request.get('task/visit/' + id)
}

// 修改拜访任务
export const taskVisit = (data) => {
  return request.put('task/visit', data)
}

// 获取调研任务详细信息
export function getresearchById(id) {
	return request.get('task/research/' + id)
}	


// 获取科室会议详细信息
export function meetingDepartmentById(id) {
	return request.get('task/meetingDepartment/' + id)
}	


// 修改科室会议
export const meetingDepartmentput = (data) => {
  return request.put('task/meetingDepartment', data)
}


// 获取调研任务详细信息
export function researcBuId(id) {
	return request.get('task/research/' + id)
}	



// 签到
export const researchSigned = (data) => {
  return request.post('task/apply/task-signed', data)
}


// 修改调研会议
export const staskResearch = (data) => {
  return request.put('task/research', data)
}



// 修改科室会议
export const upMeetingAcademic = (data) => {
  return request.put('task/meetingAcademic', data)
}


// 获取学术会议详细信息
export function meetingAcademicById(id) {
	return request.get('task/meetingAcademic/' + id)
}	

// 获取代表激活考试的试卷
export function getActivate(id) {
	return request.get('study/paper/get-activate')
}	

// 新增个人试卷
export const personalPaper = (data) => {
  return request.post('study/personalPaper', data)
}


// 获取试卷详细信息(包含试题及试题选项)
export function papergetAll(id) {
	return request.get('study/paper/get-all-info/'+id)
}	

// 查看问卷
export const listpaper = (data) => {
  return request.post('task/research/list-paper', data)
}


export function hospitalById(id) {
	return request.get('base/hospital/'+id)
}	


// 校验拜访任务
export const verifyFun = (data) => {
  return request.post('task/visit/verify', data)
}	

// 校验调研任务
export const verifyFunDy = (data) => {
  return request.post('task/research/verify', data)
}	

// 校验科室任务
export const verifyFunKs = (data) => {
  return request.post('task/meetingDepartment/verify', data)
}	

// 校验学术任务
export const verifyFunXs = (data) => {
  return request.post('task/meetingAcademic/verify', data)
}	